﻿using GalaSoft.MvvmLight;

namespace MoreEPG.Model
{
    
    public class ConfigChannelItem : ViewModelBase
    {
        
        public ConfigChannelItem()
        {
           
        }

        public bool Active { get; set; }
        public bool isHDTV { get; set; }

        public string Channel { get; set; }


        public const string ServicePropertyName = "Service";
        private string _Service;
        public string Service
        {
            get
            {
                return _Service;
            }

            set
            {
                if (_Service == value)
                {
                    return;
                }

                _Service = value;
                //Messenger.Default.Send(_Service);

                // Update bindings, no broadcast
                RaisePropertyChanged(ServicePropertyName);


            }
        }


        public const string MatchNamePropertyName = "MatchName";
        private string _MatchName;
        public string MatchName
        {
            get
            {
                return _MatchName;
            }

            set
            {
                if (_MatchName == value)
                {
                    return;
                }


                _MatchName = value;

                // Update bindings, no broadcast
                RaisePropertyChanged(MatchNamePropertyName);

            }
        }


        public const string URLPropertyName = "URL";
        private string _URL;
        public string URL
        {
            get
            {
                return _URL;
            }

            set
            {
                if (_URL == value)
                {
                    return;
                }

                _URL = value;

                // Update bindings, no broadcast
                RaisePropertyChanged(URLPropertyName);

            }
        }
    }
}